package fr.umlv.m2.jee.pmlv.persistence.ldapLink;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;

import fr.umlv.m2.jee.pmlv.persistence.cursus.Cursus;

@Embeddable
@SuppressWarnings("serial")
public class UserCursusPK implements Serializable {

	@Column(name="uid")
	private String uid;
	
	@OneToOne
	@JoinColumn(name="cursus_id")
	private Cursus cursus;
	
	@Column(name="year")
	private long year;

	public void setUid(String uid) {
		this.uid = uid;
	}

	public String getUid() {
		return uid;
	}

	public void setCursus(Cursus cursus) {
		this.cursus = cursus;
	}

	public Cursus getCursus() {
		return cursus;
	}

	public void setYear(long year) {
		this.year = year;
	}

	public long getYear() {
		return year;
	}
	
	
}
